import { Context } from 'koa'

export const successHandle = (ctx: Context, data: any = true) => {
  ctx.body = {
    code: 200,
    data
  }
}